<SCRIPT src="/js/jquery.js" type="text/javascript"></SCRIPT>
<SCRIPT src="/js/Gettext.js" type="text/javascript"></SCRIPT>
<SCRIPT src="/locale/<!--TPL:$user->lang-->/LC_MESSAGES/musdb.js.json" language="javascript"></SCRIPT>
<SCRIPT src="/js/watch.js" type="text/javascript"></SCRIPT>
    <TABLE class="commit_table" width="100%" align="center" cellspacing="5" cellpadding="0">
	<TR>
	    <TD width="100%" class="commit_caption">
		<TABLE border="0">
		    <TR>
			<TD  nowrap align="left" width="100%">
			    &nbsp;<!--TPL:"Artist details"|gettext-->
			</TD>
		    </TR>
		</TABLE>
	    </TD>
	</TR>

	<TR>
	    <TD>
		<TABLE cellpadding="25" cellspacing="0" border="0">
		    <TR>
			<TD>
                            <div style=" text-align: center;">
                                <!--TPL:if $artist->picture_path -->
                                <img src="<!--TPL:$artist->picture_path-->" style="border: 0px;" alt="<!--TPL:$artist->name-->">
                                <!--TPL:else-->
                                <a class="edit_link" href="/?cat=edit_artist&id=<!--TPL:$artist->id-->&col=picture" style="display: inline;"><!--TPL:"Upload picture"|gettext--></a>
                                <!--TPL:/if-->
                            </div>
                        </TD>
			<TD>

			    <div style="position: relative; left: -21px;">
			    <div class="artist_title"><!--TPL:$artist->name--></div><BR>

			    <!--TPL:if $artist->old_name -->
			    <div class="artist_data_title"><!--TPL:"Old name"|gettext-->: <span class="artist_data"><!--TPL:$artist->old_name--></span> </div>
			    <!--TPL:/if-->

			    <div class="artist_data_title">
                                <!--TPL:"Country"|gettext-->:

                                <!--TPL:if $artist->country-->
                                <span class="artist_data"><!--TPL:$artist->country--></span>
                                <!--TPL:else-->
                                <a class="edit_link" href="/?cat=edit_artist&id=<!--TPL:$artist->id-->&col=country" style="display: inline;"><!--TPL:"Set country"|gettext--></a>
                                <!--TPL:/if-->
                            </div>

			    <div class="artist_data_title">
                                <!--TPL:"Activity"|gettext-->:
                                <!--TPL:if $artist->year_formed -->
                                    <span class="artist_data">
                                        <!--TPL:if empty($artist->year_disbanded) -->
                                        <!--TPL:"since"|gettext--> <!--TPL:$artist->year_formed -->
                                        <!--TPL:else-->
                                        <!--TPL:$artist->year_formed--> - <!--TPL:$artist->year_disbanded-->
                                        <!--TPL:/if-->
                                    </span>
                                <!--TPL:else-->
                                <a class="edit_link" href="/?cat=edit_artist&id=<!--TPL:$artist->id-->&col=activity" style="display: inline;"><!--TPL:"Set activity"|gettext--></a>
                                <!--TPL:/if-->
                            </div>
			    
                            <div class="artist_data_title">
                            <!--TPL:"Current label"|gettext-->:
                                <!--TPL:if $artist->current_label-->
                                    <span class="artist_data"><!--TPL:$artist->current_label--></span>
                                <!--TPL:else-->
                                    <a class="edit_link" href="/?cat=edit_artist&id=<!--TPL:$artist->id-->&col=current_label" style="display: inline;"><!--TPL:"Set current label"|gettext--></a>
                                <!--TPL:/if-->
                            </div>

			    <div class="artist_data_title">
                                <!--TPL:"Genre"|gettext-->:
                                <!--TPL:if $artist->genre-->
                                <span class="artist_data"><!--TPL:$artist->genre--></span>
                                <!--TPL:else-->
                                <a class="edit_link" href="/?cat=edit_artist&id=<!--TPL:$artist->id-->&col=genre" style="display: inline;"><!--TPL:"Set genre"|gettext--></a>
                                <!--TPL:/if-->
                            </div>

			    <div class="artist_data_title">
                                <!--TPL:"Latest release"|gettext-->:
                                <!--TPL:if $artist->latest_album-->
                                <span class="artist_data"><!--TPL:$artist->latest_album_year--> &mdash; <!--TPL:$artist->latest_album--></span>
                                <!--TPL:else-->
                                <a class="edit_link" href="/?cat=edit_artist&id=<!--TPL:$artist->id-->&col=latest_album" style="display: inline;"><!--TPL:"Set latest album"|gettext--></a>
                                <!--TPL:/if-->
                            </div>

			    
			    <div class="artist_data_title">
                                <!--TPL:"Homepage"|gettext-->:
                                <!--TPL:if $artist->homepage-->
                                <a class="button" href="<!--TPL:$artist->homepage-->" target="_new"><!--TPL:$artist->homepage--></a>
                                <!--TPL:else-->
                                <a class="edit_link" href="/?cat=edit_artist&id=<!--TPL:$artist->homepage-->&col=homepage" style="display: inline;"><!--TPL:"Set homepage"|gettext--></a>
                                <!--TPL:/if-->
                            </div>

			    <div class="artist_data_title">
                                <!--TPL:"Myspace"|gettext-->:
                                <!--TPL:if $artist->myspace-->
                                <a class="button" href="<!--TPL:$artist->myspace-->" target="_new"><!--TPL:$artist->myspace--></a>
                                <!--TPL:else-->
                                <a class="edit_link" href="/?cat=edit_artist&id=<!--TPL:$artist->id-->&col=myspace" style="display: inline;"><!--TPL:"Set myspace"|gettext--></a>
                                <!--TPL:/if-->
                            </div>
			    </div>
			</TD>
		    </TR>
		</TABLE>
	    </TD>
	</TR>
        

        <TR>
            <TD align="left">
                <h2><!--TPL:"Biography"|gettext--></h2>
            </TD>
        </TR>
        <TR>
            <TD align="left">
                <!--TPL:if $artist->wiki-->
                <span class="wiki_data"><!--TPL:$artist->wiki--></span>
                <!--TPL:else-->
                <span class="wiki_data"><!--TPL:"No wiki."|gettext--> </span><a class="edit_link" href="/?cat=edit_artist&id=<!--TPL:$artist->id-->&col=wiki" style="display: inline;"><!--TPL:"Care to help?"|gettext--></a>
                <!--TPL:/if-->
            </TD>
        </TR>



        <TR>
            <TD align="left">
                <h2><!--TPL:"Releases"|gettext--></h2>
            </TD>
        </TR>

        <TR>
            <TD align="left">
                <!--TPL:foreach name=outer from=$releases item=item-->
                <!--TPL:if $smarty.foreach.outer.first-->
                <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
                <!--TPL:/if-->
                    <TR>
                        <TD>
                            <span class="wiki_data">
                                <!--TPL:if $item.year_finished-->
                                    <!--TPL:$item.year_finished-->
                                <!--TPL:else-->
                                    <!--TPL:$item.schedule_date|extract_year_from_string-->
                                <!--TPL:/if-->
                                &mdash;
                                <a style="color: #000000;" href="/release/<!--TPL:$item.id-->">
                                    <!--TPL:$item.name-->
                                    <!--TPL:if $item.schedule_date-->
                                    (<!--TPL:"schedule"|gettext-->)
                                    <!--TPL:/if-->
                                </a>
                            </span>
                        </TD>
                    </TR>
                <!--TPL:if $smarty.foreach.outer.last-->
                </TABLE>
                <!--TPL:/if-->
                <!--TPL:foreachelse-->
                <span class="wiki_data"><!--TPL:"No data"|gettext--> </span><a class="edit_link" href="/releases/new" style="display: inline;"><!--TPL:"Care to help?"|gettext--></a>
                <!--TPL:/foreach-->
            </TD>
        </TR>

        <TR>
            <TD align="left">
                <h2><!--TPL:"Members"|gettext--></h2>
            </TD>
        </TR>

        <TR>
            <TD align="left">
                <!--TPL:foreach name=outer from=$members item=item-->
                <!--TPL:if $smarty.foreach.outer.first-->
                <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
                <!--TPL:/if-->
                    <TR>
                        <TD>
                            <span class="wiki_data"><!--TPL:$item.name|capitalize--></span>
                        </TD>
                    </TR>
                <!--TPL:if $smarty.foreach.outer.last-->
                </TABLE>
                <!--TPL:/if-->
                <!--TPL:foreachelse-->
                <span class="wiki_data"><!--TPL:"No data"|gettext--> </span><a class="edit_link" href="/?cat=edit_artist&id=<!--TPL:$artist->id-->&col=members" style="display: inline;"><!--TPL:"Care to help?"|gettext--></a>
                <!--TPL:/foreach-->
            </TD>
        </TR>

        <TR>
            <TD align="left">
                <h2><!--TPL:"Tags"|gettext--></h2>
            </TD>
        </TR>

        <TR>
            <TD align="left">
                <!--TPL:foreach name=outer from=$tags item=item-->
                <!--TPL:if $smarty.foreach.outer.first-->
                <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
                <!--TPL:/if-->
                    <TR>
                        <TD>
                            <span class="wiki_data"><!--TPL:$item.name|capitalize--></span>
                        </TD>
                    </TR>
                <!--TPL:if $smarty.foreach.outer.last-->
                </TABLE>
                <!--TPL:/if-->
                <!--TPL:foreachelse-->
                <span class="wiki_data"><!--TPL:"No data"|gettext--> </span><a class="edit_link" href="/?cat=edit_artist&id=<!--TPL:$artist->id-->&col=tags" style="display: inline;"><!--TPL:"Care to help?"|gettext--></a>
                <!--TPL:/foreach-->
            </TD>
        </TR>


        <TR>
            <TD align="left">
                <h2><!--TPL:"Labels"|gettext--></h2>
            </TD>
        </TR>

        <TR>
            <TD align="left">
                <!--TPL:foreach name=outer from=$labels item=item-->
                <!--TPL:if $smarty.foreach.outer.first-->
                <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
                <!--TPL:/if-->
                    <TR>
                        <TD>
                            <span class="wiki_data"><!--TPL:$item.year--> &mdash; <!--TPL:$item.name--></span>
                        </TD>
                    </TR>
                <!--TPL:if $smarty.foreach.outer.last-->
                </TABLE>
                <!--TPL:/if-->
                <!--TPL:foreachelse-->
                <span class="wiki_data"><!--TPL:"No data"|gettext--> </span><a class="edit_link" href="/?cat=edit_artist&id=<!--TPL:$artist->id-->&col=labels" style="display: inline;"><!--TPL:"Care to help?"|gettext--></a><BR>
                <!--TPL:/foreach-->
                <BR>
            </TD>
        </TR>
        <!--TPL:if $user->access >= 0-->
        <TR>
            <TD align="left">
            <!--TPL:if $user->id != 0-->
                <!--TPL:if !$watched-->
                <div style="float:left;" id="quick_watch">
                    <input id="qwatch_button" type="button" value="<!--TPL:"Watch artist"|gettext-->" onclick="quickWatchArtist('<!--TPL:$artist->id-->'); return false;">
                </div>
                <!--TPL:else-->
                <div style="float:left;" id="quick_watch">
                    <input id="qunwatch_button" type="button" value="<!--TPL:"Unwatch artist"|gettext-->" onclick="quickUnwatchArtist('<!--TPL:$artist->id-->'); return false;">
                </div>
                <!--TPL:/if-->
            <!--TPL:/if-->
                <div style="float:right;">
                    <FORM action="#">
                            <input type="button" value="<!--TPL:"Edit artist"|gettext-->" onclick="window.location='/edit_artist?id=<!--TPL:$artist->id-->';">
                        <!--TPL:if $user->access >= 2 -->
                            <input type="button" value="<!--TPL:"Delete artist"|gettext-->" onclick="window.location='/delete_artist?id=<!--TPL:$artist->id-->';">
                        <!--TPL:/if-->
                    </FORM>
                </div>
            </TD>
        </TR>
        <!--TPL:/if-->
    </TABLE>
<!--TPL:*-->
<BR>
<a name="comments"></a>
    <TABLE class="commit_table" width="100%" align="center" cellspacing="5" cellpadding="0">
	<TR>
	    <TD width="100%" class="commit_caption">
		<TABLE border="0">
		    <TR>
			<TD nowrap align="left" width="100%">
			    &nbsp;Comments
			</TD>
		    </TR>
		</TABLE>
	    </TD>
	</TR>

        <TR>
            <TD>
        <!--TPL:foreach name=outer from=$comments item=item-->
        <!--TPL:if $smarty.foreach.outer.first-->
                <TABLE border="0" cellspacing="20" cellpadding="0" width="100%">
        <!--TPL:/if-->
                    <TR>
                        <TD>
                            <a name="comment<!--TPL:$item.id-->"></a>
                            <TABLE border="0" cellspacing="5" cellpadding="0" align="center">
                                <TR>
                                    <TD align="left" nowrap width="64px" class="comment_title">
                                        <strong>
                                            <!--TPL:if $item.user_name-->
                                            <!--TPL:$item.user_name-->
                                            <!--TPL:else-->
                                            Anonymous
                                            <!--TPL:/if-->
                                        </strong>
                                    </TD>
                                    <TD align="right" nowrap class="comment_title">
                                        <span class="comment_date"><!--TPL:$item.date_added--></span>
                                    </TD>
                                </TR>
                                <TR>
                                    <TD class="comment_pic" valign="top">
                                        <div class="badge">
                                            <!--TPL:if !$item.picture_path-->
                                            <img class="userpic" alt="<!--TPL:$item.user_name-->" src="/img/no_userpic.jpg">
                                            <!--TPL:else-->
                                            <img class="userpic" alt="<!--TPL:$item.user_name-->" src="<!--TPL:$item.picture_path-->">
                                            <!--TPL:/if-->
                                        </div>
                                    </TD>
                                    <TD class="comment" valign="top" width="400px">
                                        <div style="overflow: auto; width:400px;">
                                        <!--TPL:$item.message-->
                                        </div>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                    </TR>
       <!--TPL:if $smarty.foreach.outer.last-->
                </TABLE>
       <!--TPL:/if-->
       <!--TPL:foreachelse-->
            <span class="wiki_data">No comments yet.</span>
       <!--TPL:/foreach-->
            </TD>
        </TR>
    </TABLE>

<BR>

    <!--TPL:if $user->access >= 0-->
    <TABLE class="commit_table" width="100%" align="center" cellspacing="5" cellpadding="0">
	<TR>
	    <TD width="100%" class="commit_caption">
		<TABLE border="0">
		    <TR>
			<TD nowrap align="left" width="100%">
			    &nbsp;Add new comment
			</TD>
		    </TR>
		</TABLE>
	    </TD>
	</TR>

        <TR>
            <TD width="100%" nowrap>
                <FORM method="post" action="/?cat=comment_artist">
                    <TABLE border="0" cellspacing="5" cellpadding="0" align="center">
                        <TR>
                            <TD class="commit_label" nowrap align="right">
                                Message:
                            </TD>
                            <TD nowrap align="left">
                                <input type="hidden" name="artist_name" id="artist_name" value="<!--TPL:$artist->name-->">
                                <input type="hidden" name="artist_id" id="artist_id" value="<!--TPL:$artist->id-->">
                                <textarea cols="1" rows="1" name="message" id="message" class="flat" style="width: 400px; height: 64px;"></textarea>
                            </TD>
                        </TR>

                        <TR>
                            <TD class="commit_label" nowrap align="right">
                                
                            </TD>
                            <TD align="center">
                                <input type="submit" class="submit" value="Add comment">
                                <!--TPL:if $user->id == 0 -->
                                <small>You are not logged in. Comment will be added <strong>anonymously</strong>.</small>
                                <!--TPL:/if-->
                            </TD>
                        </TR>
                    </TABLE>
                </FORM>
            </TD>
        </TR>
    </TABLE>
    <!--TPL:/if-->
<!--TPL:*-->